package com.itheima.demo;

public class Test {
    public static void main(String[] args) {
        MeImpl me = new MeImpl();
        me.fly();
        me.work();
        SuperMan.AAA();
    }
}

interface SuperMan{
    void fly();
    void power();
    default void work(){
        System.out.println("打人");
    }
    static void AAA(){
        System.out.println("住三星酒店");
    }
}

interface IronMan {
    double HOUR = 5.0;
    void money();
    void fly(double a);

    default void work() {
        System.out.println("修理");
    }
}

interface Me extends SuperMan,IronMan{
    @Override
    default void work() {
        System.out.println("打人和修理");
    }
}

class MeImpl implements Me{

    @Override
    public void fly() {
        System.out.println("飞");
    }

    @Override
    public void power() {
        System.out.println("力量");
    }

    @Override
    public void money() {
        System.out.println("钱");
    }

    @Override
    public void fly(double a) {
        System.out.println("飞"+HOUR+"小时");
    }

}
